{include file="header.tpl" title=info}

<div class="header"></div>
<div class="nav">
    <a href="home.php">主页</a>
    <a href="profile.php">个人</a>
    <a href="#">群组</a>
    <a href="#">搜索</a>
    <a href="#" class="active">{$info.basic_user_info[0].real_name}</a>	
</div>
<div class="mainContent">
    <div class="left">
      <div class="slider">
      	<div class="headPortrait">
        	<h3>{$info.basic_user_info[0].real_name}<font style="margin:0 5px;">@</font>{$info.basic_user_info[0].current_city}</h3>
			<img src="../img/bigHead_{$info.basic_user_info[0].image_path}" />
            <p><img src="../img/1sexFemale.png"/>在线</p>
            <table cellpadding="0" cellspacing="0">
 				<tr><td>上次登陆：</td><td>{$info.basic_user_info[0].last_ip}</td></tr>
				<tr><td>登录地点：</td><td>XXX北京</td></tr>
				<tr><td>注册日期：</td><td>{$info.basic_user_info[0].register_date}</td></tr>
				<tr height="10"></tr>
				<tr>
					<td>
						<a href="profile.php?action=mail&sub=new&toid={$info.basic_user_info[0].uid}" target="_blank">发送邮件</a>
					</td>
				</tr>
				<tr>
					<td>
						<a href="#" target="_blank">收藏</a>
					</td>
				</tr>	
				<tr>
					<td>
						<a href="#" target="_blank">评价</a>
					</td>
				</tr>	
			</table>

        </div>
        <div class="info">
        	<p>注册日期：2007.05.28<br />点击率：1234<br />交换经验：有<br /></p>
            <p>ECHO旅游过广东由iule接待，桂林由Bit接待，湖北由SY接待，阳朔由小肥猪接待，广西由monster接待；</p>
            <p>ECHO接待过广东的朋友iule，桂林的朋友Bit，湖北的朋友SY，阳朔的朋友小肥猪，广西的朋友Raywill来北京玩；</p>
        </div>
      </div>
      <div class="content">

      	<table class="basicInfo" cellpadding="0" cellspacing="0" style="margin-top:15px;">
        	<tr><td class="cname">用户名</td><td>user</td></tr>
            <tr><td class="cname">昵称</td><td>{$info.basic_user_info[0].real_name}</td></tr>
            <tr><td class="cname">性别</td><td>
			{if $info.basic_user_info[0].sex == 'F'}
			女生
			{elseif $info.basic_user_info[0].sex == 'M'}
			男生
			{else}
			  保密
			{/if}
			</td></tr>
            <tr><td class="cname">年龄</td><td>{$info.basic_user_info[0].birthday}</td></tr>
            <tr><td class="cname">位置</td><td>{$info.basic_user_info[0].current_city}</td></tr>
            <tr><td class="cname">家乡</td><td>{$info.basic_user_info[0].hometown}</td></tr>

<!--
            <tr><td class="cname">学校</td><td>XXX</td></tr>
            <tr><td class="cname">电子邮件</td><td>XXX</td></tr>
            <tr><td class="cname">QQ</td><td>XXX</td></tr>
-->
            <tr><td class="cname">我想去的地方</td><td>
				{section name=city_idx loop=$info.state_list}
					{$info.state_list[city_idx].target}&nbsp; 
				{/section}
			</td></tr>
			
            <tr><td class="cname">服务等级</td><td>
			{if ($info.basic_user_info[0].service_provided & 7) == 0}
			     暂时没有条件提供服务
			{else}
				{if ($info.basic_user_info[0].service_provided & 1) == 1}
					订票&nbsp;
				{/if}
				{if ($info.basic_user_info[0].service_provided & 2) == 2}
					导游&nbsp;
				{/if}
				{if ($info.basic_user_info[0].service_provided & 4) == 4}
					住宿&nbsp;
				{/if}
			{/if}	
			

					
			</td></tr>
            <tr><td class="cname">我的接待条件</td><td>
			<div id="reception_cond">loading...</div>
			<script language="javascript">
			document.getElementById("reception_cond").innerHTML = parse_description("{$info.basic_user_info[0].reception_requirement}");
			</script>
			</td></tr>
        </table>
        <a class="edit-btn editBasicInfo" href="#">编辑个人资料</a>

		
        <hr color="#e3eff7" size="1" />
		<h5>关于我</h5>
        <hr color="#e3eff7" size="1" />		
        <div id="advantageInfo" class="advantageInfo">loading...
        </div>
		<script language="javascript">
			document.getElementById("advantageInfo").innerHTML = parse_description("{$info.basic_user_info[0].self_description}");
		</script>
        <a class="edit-btn editAdvantageInfo" href="#">编辑高级资料</a>

		
        <hr color="#e3eff7" size="1" />
		<h5>游友的评价</h5>
        <hr color="#e3eff7" size="1" />
        <!-- loop -->		
        <table cellpadding="0" cellspacing="0" class="msg">
		{foreach from=$info.friend_desc item=desc}
        <tr class="msgblock">
        	<td class="no">1</td>
            <td class="head"><a href="friend.php?uid={$desc.reply_from_uid}"><img src="../images/icon/{$desc.image_path}" /></a></td>
            <td class="text">
            	<h6>{$desc.real_name}</h6><span>[{$desc.desc_time}]</span>
                <div class="leavemsg">{$desc.content}</div>
            </td>
        </tr>		
		{/foreach}
        </table>
        <!-- end loop -->		
        <p class="pages"><a href="#" class="preview">&lt;</a><a href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#" class="next">&gt;</a></p>
      </div>
    </div>
	<div class="right">
		<div class="visitor smodule">
			<a href="#" class="more">查看更多</a>
			<h5>{$info.basic_user_info[0].real_name}的近期访客</h5>
			<div class="clear"></div>
			<!-- loop -->
			{foreach from=$info.recent_visitor item=visitor}
			<a href="friend.php?uid={$visitor.visitor_id}"><img src="../images/icon/{$visitor.image_path}" /><p>{$visitor.real_name}</p></a>
			{/foreach}
		</div>
		
		<div class="friends smodule">
			<h5>{$info.basic_user_info[0].real_name}的收藏</h5>
			<div class="clear"></div>
			<!-- loop -->
			{foreach from=$info.friend_list item=friend}
			<a href="friend.php?uid={$friend.friend_id}"><img src="../images/icon/{$friend.image_path}" /><p>{$friend.real_name}</p></a>
			{/foreach}
			<!-- end loop -->
		</div>
		<div class="groups smodule">
			<a href="#" class="more">查看更多</a>
			<h5>ECHO的群组</h5>
			<div class="clear"></div>
			<!-- loop -->
			<a href="#"><img src="../img/1smallHead.png" /><p>echo</p></a>
			<!-- end loop -->
			</div>
    </div>
</div>

{include file="footer.tpl" title=foo}
